-- GENERATED SPELL FOR [Val'zareq the Conqueror] --


function spell0_21979(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(38094,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_21979', 580, 1)
end

function Sorts_21979(pUnit, Event)
local choix_sorts_21979 = math.random(0, 0)
if choix_sorts_21979 == 0 then
pUnit:RegisterEvent('spell0_21979', 1, 1)
end
end

function mob21979_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_21979', math.random(1500, 3000), 1)
end

function mob21979_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21979_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob21979_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(21979, 1, 'mob21979_Action')
RegisterUnitEvent(21979, 2, 'mob21979_Leave')
RegisterUnitEvent(21979, 3, 'mob21979_Kill')
RegisterUnitEvent(21979, 4, 'mob21979_Die')
